<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Show visit</title>
</h:head>
<body>
	<ui:composition template="/pages/common/commonLayout.xhtml">
		<ui:define name="content">
			<p:panel>
				<h:outputLabel value="Imie i nazwisko: " />
				<h:outputText value="#{visitMB.visitToChoose.patient.fullName}" />
			</p:panel>
			
    		<p:panel header="Wizyta" toggleable="true" widgetVar="panel"
				closable="false" toggleSpeed="500" closeSpeed="500">
				<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
				<h:outputLabel value="Data pocztku:" />
				<h:outputText value="#{visitMB.visitToChoose.dateStart}" />
				<br/>
				<h:outputLabel value="Lekarz: " />
				<h:outputText value="#{visitMB.visitToChoose.schedule.doctor.fullName}" />
				<br/>
				<h:outputLabel value="Specjalizacja: " />
				<h:outputText value="#{visitMB.visitToChoose.schedule.doctor.spec.label}" />
			</p:panel>
		</ui:define>
	</ui:composition>
</body>
</html>
